package com.homedo.odin.solution.config.bean;

import com.dangdang.ddframe.rdb.sharding.id.generator.IdGenerator;
import com.dangdang.ddframe.rdb.sharding.id.generator.self.IPIdGenerator;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author ：ZhangLei
 * @date ：2018/6/5
 * @description :
 */
@Configuration
public class BeanInit {

    @Bean
    public IdGenerator idGenerator() {
        IdGenerator uuidGenerator = new IPIdGenerator();
        return uuidGenerator;
    }
}
